import request from '@/utils/request'
/**
 * 统计缺陷状态分析页面顶部的数量:缺陷数量、已处理数、未处理数
 * @param {string}
 */
export function countAnalysisDefectStatusNums(query) {
  return request({
    url: '/phm/analysisDefectStatus/countAnalysisDefectStatusNums',
    method: 'get',
    params: query
  })
}
/**
 * 缺陷状态分析:按时间趋势分析
 * @param {string}
 */
export function analysisDefectTrend(query) {
  return request({
    url: '/phm/analysisDefectStatus/analysisDefectTrend',
    method: 'get',
    params: query
  })
}
/**
 * 缺陷状态分析：按缺陷等级分析
 * @param {string}
 */
export function analysisDefectLevel(query) {
  return request({
    url: '/phm/analysisDefectStatus/analysisDefectLevel',
    method: 'get',
    params: query
  })
}
/**
 * 缺陷状态分析：按线路分析
 * @param {string}
 */
export function analysisByLine(query) {
  return request({
    url: '/phm/analysisDefectStatus/analysisByLine',
    method: 'get',
    params: query
  })
}
/**
 * 缺陷状态分析：按车间分析
 * @param {string}
 */
export function analysisByWorkShop(query) {
  return request({
    url: '/phm/analysisDefectStatus/analysisByWorkShop',
    method: 'get',
    params: query
  })
}
/**
 * 缺陷状态分析：按关键设备分析
 * @param {string}
 */
export function analysisByKeyEquipment(query) {
  return request({
    url: '/phm/analysisDefectStatus/analysisByKeyEquipment',
    method: 'get',
    params: query
  })
}
/**
 * 缺陷状态分析：按检测方式分析
 * @param {string}
 */
export function analysisByInspectionMethod(query) {
  return request({
    url: '/phm/analysisDefectStatus/analysisByInspectionMethod',
    method: 'get',
    params: query
  })
}
/**
 * 二级|三级页面：通过线路|区间站场|锚段查询缺陷趋势分析
 * @param {string}
 */
export function analysisDefectTrendByCode(query) {
  return request({
    url: '/phm/analysisDefectStatus/analysisDefectTrendByCode',
    method: 'get',
    params: query
  })
}
